package com.koron.order.perambulate.feign;

import com.koron.bean.base.Response;
import com.koron.bean.system.staff.vo.EamUser;
import com.koron.common.core.annocation.CasUser;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.order.risk.feign.dto.EquipmentParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @ClassName: EquipmentFeign
 * @Description:
 * @Date: 2023/2/3
 * @Author: 李一辰
 * @Version: 1.0
 **/
@Component
@FeignClient(value = "eam-service-device" ,fallbackFactory = FeignFallbackFactory.class)
public interface EquipmentFeign {


    @GetMapping("/getBasicParamsByTypeId")
    @ApiOperation(value = "根据分类id查询基础参数列表")
    Response<List<EquipmentParams>> getBasicParamsByTypeId(@RequestParam(value = "user",defaultValue = "test") @CasUser @ApiIgnore EamUser user, @RequestParam("typeId") String typeId);



}
